/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


package entitys;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

import javax.persistence.OneToMany;
@Entity
@DiscriminatorValue("Owner")
public class Owner extends Person{
   
    public Owner(){
        super();
    }
    @OneToMany(mappedBy="Owner")
    private List<Pet> pet = new ArrayList<>();
    
    public List<Pet> getpet(){
        return pet;
    }
    
    public void setpet(List<Pet> pet){
        this.pet = pet;
    }

}
